﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Web;
using Charades.Web.Helpers;
using Newtonsoft.Json;

namespace Charades.Web.Server.User
{
	public class User
	{
		public User(string connectionId, string name)
		{
			ConnectionId = connectionId;
			Name = name;
			Color = ColorHelper.GenerateColor();
		}

		[JsonIgnore]
		public string ConnectionId { get; protected set; }

		[JsonProperty("name")]
		public string Name { get; protected set; }

		[JsonProperty("color")]
		public string Color { get; set; }

		[JsonProperty("points")]
		public int Points { get; set; }

		[JsonIgnore]
		public string RoomId { get; set; }
	}
}